package com.oocl.hw02.sprint;

public abstract class Zombie extends BasicSprint {

    protected double speed;
    protected int eatDamage;

    public double getSpeed() {
        return speed;
    }

    public void setSpeed(double speed) {
        this.speed = speed;
    }

    public void setEatDamage(int eatDamage) {
        this.eatDamage = eatDamage;
    }

    public void eatPlant(Plant plant) {
        plant.setHp(plant.getHp() - eatDamage);
    }
}
